package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Shuxue {
    public static void main(String[] args) {
        //整数相除,小数点不留
        int a=27,b=7;
        int c=a/b;
        int y=a%b;
        System.out.println("商是"+c);
        System.out.println("余数是"+y);
        //浮点数相除
        System.out.println(">>>>>>>>浮点数相除>>>>>>>>>>>>>>>");
        double d1=23.6,d2=4.3;
        double d3=d1/d2;
        double d4=d1%d2;
        System.out.println("商是"+d3);
        System.out.println("浮点数的余数是"+d4);//2.1
    }
}
